package com.yellowpage.omc.keyword.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * KeywordLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_KEYWORD_LOG")
public class KeywordLog implements java.io.Serializable {

	// Fields

	private Long keywordLogId;
	private Integer keywordId;
	private String type;
	private String content;
	private Integer createUser;
	private Date createTime;

	// Constructors

	/** default constructor */
	public KeywordLog() {
	}

	/** minimal constructor */
	public KeywordLog(Integer keywordId) {
		this.keywordId = keywordId;
	}

	/** full constructor */
	public KeywordLog(Integer keywordId, String type, String content,
			Integer createUser, Date createTime) {
		this.keywordId = keywordId;
		this.type = type;
		this.content = content;
		this.createUser = createUser;
		this.createTime = createTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "KEYWORD_LOG_ID", unique = true, nullable = false)
	public Long getKeywordLogId() {
		return this.keywordLogId;
	}

	public void setKeywordLogId(Long keywordLogId) {
		this.keywordLogId = keywordLogId;
	}

	@Column(name = "KEYWORD_ID", nullable = false)
	public Integer getKeywordId() {
		return this.keywordId;
	}

	public void setKeywordId(Integer keywordId) {
		this.keywordId = keywordId;
	}

	@Column(name = "TYPE", length = 20)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "CONTENT", length = 256)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}